package com.titleevaluation.repository;

import com.titleevaluation.entity.Application;
import com.titleevaluation.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface ApplicationRepository extends JpaRepository<Application, Long> {
    List<Application> findByUser(User user);
    Optional<Application> findByApplicationNo(String applicationNo);
}

